//
//  TTEstimateImageViewCell.m
//  TaoTuo
//
//  Created by LG on 2020/8/13.
//  Copyright © 2020 刘广. All rights reserved.
//

#import "TTEstimateImageViewCell.h"
#import <UIImageView+WebCache.h>

@interface TTEstimateImageViewCell ()

@property (nonatomic, strong) UIImageView *imageView;

@end

@implementation TTEstimateImageViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setupSubViews];
        
    }
    return self;
}

- (void)setModel:(TTEstimateRecordImageInfoModel *)model
{
    _model = model;
    if (model.Path.length > 0) {
        [self.imageView sd_setImageWithURL:[NSURL URLWithString:model.Path] placeholderImage:[UIImage imageNamed:@"f_placeholder_img"] options:SDWebImageRetryFailed];
    }
}

- (void)setupSubViews
{
    _imageView = [[UIImageView alloc] initWithFrame:self.bounds];
    _imageView.layer.cornerRadius = 5;
    _imageView.layer.masksToBounds = YES;
    _imageView.backgroundColor = UIColorHex(F1F5F6);
    [self.contentView addSubview:_imageView];
    
    _imageView.backgroundColor = [UIColor grayColor];
    
}




@end
